// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-11-13 17:44:14
// 生成路径: api/v1/system/runners.go
// 生成人：gfast
// desc:跑手管理相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package system

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

// RunnersSearchReq 分页请求参数
type RunnersSearchReq struct {
	g.Meta `path:"/list" tags:"跑手管理" method:"get" summary:"跑手管理列表"`
	commonApi.Author
	model.RunnersSearchReq
}

// RunnersSearchRes 列表返回结果
type RunnersSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.RunnersSearchRes
}

// RunnersAddReq 添加操作请求参数
type RunnersAddReq struct {
	g.Meta `path:"/add" tags:"跑手管理" method:"post" summary:"跑手管理添加"`
	commonApi.Author
	*model.RunnersAddReq
}

// RunnersAddRes 添加操作返回结果
type RunnersAddRes struct {
	commonApi.EmptyRes
}

// RunnersEditReq 修改操作请求参数
type RunnersEditReq struct {
	g.Meta `path:"/edit" tags:"跑手管理" method:"put" summary:"跑手管理修改"`
	commonApi.Author
	*model.RunnersEditReq
}

// RunnersEditRes 修改操作返回结果
type RunnersEditRes struct {
	commonApi.EmptyRes
}

// RunnersGetReq 获取一条数据请求
type RunnersGetReq struct {
	g.Meta `path:"/get" tags:"跑手管理" method:"get" summary:"获取跑手管理信息"`
	commonApi.Author
	Id int `p:"id" v:"required#主键必须"` //通过主键获取
}

// RunnersGetRes 获取一条数据结果
type RunnersGetRes struct {
	g.Meta `mime:"application/json"`
	*model.RunnersInfoRes
}

// RunnersDeleteReq 删除数据请求
type RunnersDeleteReq struct {
	g.Meta `path:"/delete" tags:"跑手管理" method:"delete" summary:"删除跑手管理"`
	commonApi.Author
	Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}

// RunnersDeleteRes 删除数据返回
type RunnersDeleteRes struct {
	commonApi.EmptyRes
}
